################################################
#### Replication files for Barrie, Clarke, and Ketchley "Burnings, Beatings, and Bombings:Disaggregating Anti-Christian Violence in Egypt, 2013-2018"
################################################

####
## Data:
####

The replication archive includes 5 datasets: 

For further details see the "Data and method" section of the paper, as well as Appendix Table C1. 

1. data/final/barrie_clarke_ketchley_dataset, which is the principal analysis dataset;

2. data/raw/sectarian_events_bbb.xlsx, which is the raw event data for anti-Christian violence events;

3. and three secondary datasets for the analysis of pre-trends in sectarian violence from DADRI, GTD, and SCAD which are found in:
	 data/raw/sectarian_DADRI
	 data/raw/sectarian_GTD
	 data/raw/sectarian_SCAD

####
## Documentation:
####

1. this readme.txt file
2. an analysis log file "analysis_log.txt"

####
## Code:
####

The replication archive includes 1 Stata do file and 2 R scripts.

1. 00_barrie_clark_ketchley_replication.do is the main script for reproducing all of the results in the published paper and supplemental appendix. 
 
2. 01_tseries_sectarian.R is a supporting R script, which generates time series of plots of events and deaths from the raw event data

3. 02_pre_trends_plots.R is a supporting R script, which generates time series plots of pre-trends in sectarian violence

####
## Software:
####

All data analyses in this article were carried out using Stata version 17 and R version 4.1.2.

The following Stata packages were used in the analysis:

vce2way
spost13_ado

NB. spost13_ado is not available through ssc and can be installed by typing the following into the command line:

net install spost13_ado.pkg

The following R packages were used in the supporting scripts:

dplyr
ggthemes
ggplot2
readxl
cowplot
lubridate
tidyr
zoo
kableExtra

These can be installed from CRAN. 

